home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d19 / virtst11.arc / PCBTEST.BAT < prev    next >
DOS Batch File  |  1990-08-09  |  1KB  |  57 lines

  1. testfile %1 arc zip txt gif lzh sit 
  2. if errorlevel == 7 goto unknown
  3. if errorlevel == 6 goto end
  4. if errorlevel == 5 goto lzh
  5. if errorlevel == 4 goto end
  6. if errorlevel == 3 goto end
  7. if errorlevel == 2 goto zip
  8. if errorlevel == 1 goto arc
  9. goto end
  10.  
  11. :arc
  12. del o:\scan\*.* < enter
  13. pkxarc %1 o:\scan
  14. scan o: /d /nomem > pcbfail.txt
  15. if errorlevel == 1 goto warning
  16. zap o:\scan\*.* < enter 
  17. pkxarc -t %1 > pcbfail.txt
  18. if errorlevel == 1 goto end
  19. del pcbfail.txt
  20. goto end
  21.  
  22. :zip
  23. del o:\scan\*.* < enter
  24. pkunzip %1 o:\scan
  25. scan o: /d /nomem > pcbfail.txt
  26. if errorlevel == 1 goto warning
  27. del o:\scan\*.* < enter
  28. pkunzip -t %1 > pcbfail.txt
  29. if errorlevel == 1 goto end
  30. del pcbfail.txt
  31. goto end
  32.  
  33. :lzh
  34. del o:\scan\*.* < enter
  35. lharc e /w %1 o:\scan\
  36. scan o: /d /nomem > pcbfail.txt
  37. if errorlevel == 1 goto warning
  38. del o:\scan\*.* < enter
  39. lharc t /v %1 > pcbfail.txt
  40. if errorlevel == 1 goto end
  41. del pcbfail.txt
  42. goto end
  43.  
  44.  
  45. :unknown
  46. echo ERROR: %1 archiver could not be identified! > pcbfail.txt
  47. echo        %1 will be saved for the Sysop to inspect > pcbfail.txt
  48. goto end
  49.  
  50. :warning
  51. echo  A virus was found in file %1! > virwarn!
  52. copy virwarn!+pcbfail.txt
  53. copy virwarn! d:\hold
  54. copy o:\scan\*.* o:\virus
  55. del o:\scan\*.* < enter
  56. :end
  57.